<template>
  <div class="report-tip" v-if="props.isShow" @click="handleToReport">
    <div class="tip-title">实验结束，开始写实验报告</div>
    <div class="tip-arrow"></div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps<{
  isShow: boolean;
}>();
const emit = defineEmits<{ (e: "toReport"): void }>();
const handleToReport = () => {
  emit("toReport");
};
</script>
<style lang="less" scoped>
.report-tip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 100px;
  background: #2776ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  .tip-title {
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 24px;
    color: #ffffff;
    line-height: 30px;
  }
  .tip-arrow {
    background: url(@/assets/icon-arrow-link.png) no-repeat center;
    width: 30px;
    height: 30px;
    margin-left: 8px;
  }
}
</style>
